<template>
  <a-card :bordered="false">

    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
        <a-row :gutter="24">

          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="支付宝姓名">
              <a-input placeholder="请输入支付宝姓名" v-model="queryParam.zfbName"></a-input>
            </a-form-item>
          </a-col>

          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="手机号码">
              <a-input placeholder="请输入手机号码" v-model="queryParam.phone"></a-input>
            </a-form-item>
          </a-col>

          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="提现状态">
              <j-dict-select-tag v-model="queryParam.orderStatue" placeholder="请选择"
                                 dictCode="ddzt"/>
            </a-form-item>
          </a-col>

          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
            </span>
          </a-col>

        </a-row>
      </a-form>
    </div>

    <!-- 操作按钮区域 -->
    <!--<div class="table-operator">-->
      <!--<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
      <a-button type="primary" icon="download" @click="handleExportXls('推广提现管理')">导出</a-button>-->
    <!--</div>-->

    <!-- table区域-begin -->
    <div>


      <a-table
        ref="table"
        size="middle"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        class="j-table-force-nowrap"
        @change="handleTableChange">

        <span slot="action" slot-scope="text, record">
          <a-popconfirm title="确定确认转账吗?" @confirm="() => handleDelete(record.id)">
            <a v-if="record.orderStatue == 0">确认转账</a>
          </a-popconfirm>
          <!--<a @click="handleEdit(record)">编辑</a>

          <a-divider type="vertical" />
          <a-dropdown>
            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
            <a-menu slot="overlay">
              <a-menu-item>
                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
                  <a>删除</a>
                </a-popconfirm>
              </a-menu-item>
            </a-menu>
          </a-dropdown>-->
        </span>

      </a-table>
    </div>
    <!-- table区域-end -->

    <!-- 表单区域 -->
    <withdrawalExtension-modal ref="modalForm" @ok="modalFormOk"></withdrawalExtension-modal>
  </a-card>
</template>

<script>
  import '@/assets/less/TableExpand.less'
  import WithdrawalExtensionModal from './modules/WithdrawalExtensionModal'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'

  export default {
    name: "WithdrawalExtensionList",
    mixins:[JeecgListMixin],
    components: {
      WithdrawalExtensionModal
    },
    data () {
      return {
        description: '推广提现管理管理页面',
        // 表头
        columns: [
          {
            title: '序号',
            dataIndex: '',
            key:'rowIndex',
            width:60,
            align:"center",
            customRender:function (t,r,index) {
              return parseInt(index)+1;
            }
          },
          /*{
               title: '不知道能不能用上',
               align:"center",
               dataIndex: 'nameId'
              },*/
          {
            title: '提现单号',
            align:"center",
            dataIndex: 'orderNumber'
          },
          /*{
            title: '昵称',
            align:"center",
            dataIndex: 'userId_dictText'
          },*/
          {
            title: '微信昵称',
            align:"center",
            dataIndex: 'wxName'
          },
          {
            title: '手机号码',
            align:"center",
            dataIndex: 'phone'
          },
          {
            title: '用户状态',
            align:"center",
            dataIndex: 'udelflag_dictText'
          },
          /*{
            title: '商品名',
            align:"center",
            dataIndex: 'title'
          },*/
          {
            title: '提现金额',
            align:"center",
            dataIndex: 'price'
          },
          {
            title: '支付宝名字',
            align:"center",
            dataIndex: 'zfbName'
          },
          {
            title: '支付宝账号',
            align:"center",
            dataIndex: 'zfbNumber'
          },
          {
            title: '提现状态',
            align:"center",
            dataIndex: 'orderStatue_dictText'
          },
          {
            title: '申请提现时间',
            align:"center",
            dataIndex: 'orderTime'
          },
          /*{
            title: '账单类型',
            align:"center",
            dataIndex: 'type_dictText'
          },*/
          {
            title: '确认转账时间',
            align:"center",
            dataIndex: 'updateTime'
          },
          /*{
               title: '0:正常,1:删除',
               align:"center",
               dataIndex: 'delflag'
              },
          {
               title: 'remark',
               align:"center",
               dataIndex: 'remark'
              },
          {
               title: '手续费',
               align:"center",
               dataIndex: 'remark1'
              },
          {
               title: 'remark2',
               align:"center",
               dataIndex: 'remark2'
              },
          {
               title: 'remark3',
               align:"center",
               dataIndex: 'remark3'
              },
          {
               title: 'remark4',
               align:"center",
               dataIndex: 'remark4'
              },
          {
               title: 'remark5',
               align:"center",
               dataIndex: 'remark5'
              },
          {
               title: 'remark6',
               align:"center",
               dataIndex: 'remark6'
              },
          {
               title: 'remark7',
               align:"center",
               dataIndex: 'remark7'
              },
          {
               title: 'remark8',
               align:"center",
               dataIndex: 'remark8'
              },
          {
               title: 'remark9',
               align:"center",
               dataIndex: 'remark9'
              },
          {
               title: 'remark10',
               align:"center",
               dataIndex: 'remark10'
              },*/
          {
            title: '操作',
            dataIndex: 'action',
            align:"center",
            scopedSlots: { customRender: 'action' },
          }
        ],
		url: {
          list: "/vwithdrawalextension/withdrawalExtension/list",
          delete: "/vwithdrawalextension/withdrawalExtension/delete",
          deleteBatch: "/vwithdrawalextension/withdrawalExtension/deleteBatch",
          exportXlsUrl: "vwithdrawalextension/withdrawalExtension/exportXls",
          importExcelUrl: "vwithdrawalextension/withdrawalExtension/importExcel",
       },
    }
  },
  computed: {
    importExcelUrl: function(){
      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
    }
  },
    methods: {
     
    }
  }
</script>
<style scoped>
  @import '~@assets/less/common.less';
</style>